package joth

import "sync"

type Locker struct {
	locker *sync.Mutex
}

func NewLocker() *Locker {
	return &Locker{
		locker: new(sync.Mutex),
	}
}

func (l *Locker) Lock() {
	l.locker.Lock()
}

func (l *Locker) Unlock() {
	l.locker.Unlock()
}
